package com.leave.dao;

import java.util.List;

import com.leave.entity.Leave;

public interface LeaveMapper {
    int deleteByPrimaryKey(Integer leaveId);

    int insert(Leave record);

    int insertSelective(Leave record);

    Leave selectByPrimaryKey(Integer leaveId);

    int updateByPrimaryKeySelective(Leave record);

    int updateByPrimaryKeyWithBLOBs(Leave record);

    int updateByPrimaryKey(Leave record);

	List<Leave> getLeaveByPage(int userId);

	Leave getLeaveByProcessInstanceId(String processInstanceId);
}